from django.conf.urls.defaults import *

urlpatterns = patterns('modular.views',
    (r'^add/$', 'list_modules'),
    (r'^add/(?P<module_type>[^/]+)/$', 'add_module'),
    (r'^(?P<module_id>\d+)/$', 'get_module'),
    (r'^(?P<module_id>\d+)/edit/$', 'edit_module'),
    (r'^(?P<module_id>\d+)/remove/$', 'remove_module'),
    (r'^arrange/$', 'arrange_modules'),
)
